package com.shangs.platform.common.persistence.model;

import java.io.Serializable;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 图片
 * </p>
 *
 * @author shangs
 * @since 2017-10-26
 */
@TableName("cms_image")
public class CmsImage extends Model<CmsImage> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
	@TableId(value="id", type= IdType.AUTO)
	private Long id;
    /**
     * 相册ID
     */
	@TableField("album_id")
	private Long albumId;
    /**
     * 相册名称
     */
	@TableField("album_name")
	private String albumName;
    /**
     * 图片名称
     */
	private String name;
    /**
     * 链接地址
     */
	private String linkurl;
    /**
     * CDN地址
     */
	private String cdnurl;
    /**
     * 图片路径
     */
	@TableField("image_url")
	private String imageUrl;
    /**
     * 网络图片路径
     */
	@TableField("image_net_url")
	private String imageNetUrl;
    /**
     * 扩展名
     */
	private String ext;
    /**
     * 宽
     */
	private String width;
    /**
     * 高
     */
	private String height;
    /**
     * 状态//radio/2,隐藏,1,显示
     */
	private Integer status;
    /**
     * 是否评论//radio/2,否,1,是
     */
	@TableField("is_comment")
	private Integer isComment;
    /**
     * 是否推荐：2 否 1 是
     */
	@TableField("is_recommend")
	private Integer isRecommend;
    /**
     * 排序
     */
	private Integer sort;
    /**
     * 备注
     */
	private String remark;
    /**
     * 发布时间
     */
	@TableField("publish_time")
	private String publishTime;
    /**
     * 发布者
     */
	@TableField("publish_user")
	private String publishUser;
    /**
     * 更新时间
     */
	@TableField("update_time")
	private Date updateTime;
    /**
     * 更新者
     */
	@TableField("update_id")
	private Integer updateId;
    /**
     * 创建时间
     */
	@TableField("create_time")
	private Date createTime;
    /**
     * 创建者
     */
	@TableField("create_id")
	private Integer createId;


	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Long getAlbumId() {
		return albumId;
	}

	public void setAlbumId(Long albumId) {
		this.albumId = albumId;
	}

	public String getAlbumName() {
		return albumName;
	}

	public void setAlbumName(String albumName) {
		this.albumName = albumName;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getLinkurl() {
		return linkurl;
	}

	public void setLinkurl(String linkurl) {
		this.linkurl = linkurl;
	}

	public String getCdnurl() {
		return cdnurl;
	}

	public void setCdnurl(String cdnurl) {
		this.cdnurl = cdnurl;
	}

	public String getImageUrl() {
		return imageUrl;
	}

	public void setImageUrl(String imageUrl) {
		this.imageUrl = imageUrl;
	}

	public String getImageNetUrl() {
		return imageNetUrl;
	}

	public void setImageNetUrl(String imageNetUrl) {
		this.imageNetUrl = imageNetUrl;
	}

	public String getExt() {
		return ext;
	}

	public void setExt(String ext) {
		this.ext = ext;
	}

	public String getWidth() {
		return width;
	}

	public void setWidth(String width) {
		this.width = width;
	}

	public String getHeight() {
		return height;
	}

	public void setHeight(String height) {
		this.height = height;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public Integer getIsComment() {
		return isComment;
	}

	public void setIsComment(Integer isComment) {
		this.isComment = isComment;
	}

	public Integer getIsRecommend() {
		return isRecommend;
	}

	public void setIsRecommend(Integer isRecommend) {
		this.isRecommend = isRecommend;
	}

	public Integer getSort() {
		return sort;
	}

	public void setSort(Integer sort) {
		this.sort = sort;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public String getPublishTime() {
		return publishTime;
	}

	public void setPublishTime(String publishTime) {
		this.publishTime = publishTime;
	}

	public String getPublishUser() {
		return publishUser;
	}

	public void setPublishUser(String publishUser) {
		this.publishUser = publishUser;
	}

	public Date getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

	public Integer getUpdateId() {
		return updateId;
	}

	public void setUpdateId(Integer updateId) {
		this.updateId = updateId;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Integer getCreateId() {
		return createId;
	}

	public void setCreateId(Integer createId) {
		this.createId = createId;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "CmsImage{" +
			"id=" + id +
			", albumId=" + albumId +
			", albumName=" + albumName +
			", name=" + name +
			", linkurl=" + linkurl +
			", cdnurl=" + cdnurl +
			", imageUrl=" + imageUrl +
			", imageNetUrl=" + imageNetUrl +
			", ext=" + ext +
			", width=" + width +
			", height=" + height +
			", status=" + status +
			", isComment=" + isComment +
			", isRecommend=" + isRecommend +
			", sort=" + sort +
			", remark=" + remark +
			", publishTime=" + publishTime +
			", publishUser=" + publishUser +
			", updateTime=" + updateTime +
			", updateId=" + updateId +
			", createTime=" + createTime +
			", createId=" + createId +
			"}";
	}
}
